<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>后台管理-修改新闻</title>
<link rel="stylesheet" type="text/css" href="/PLDCarWeb/manage/manage.css" />
<script type="text/javascript" src="newsEdit.js"></script>
<script type="text/javascript" src="/PLDCarWeb/utils.js"></script>
</head>
<body onload="loadNews();">
	<!--body start -->
	<div id="newsEdit">
		<div id="title">新闻管理 - 修改新闻<a href="/PLDCarWeb/manage/news/newsList.jsp">返回记录列表</a></div>
		<form id="frmEditNews" name="frmEditNews" method="post"  action="editNews.action" enctype="multipart/form-data">
		<div>
			<span id="label1">新闻类型</span>
			<select name="news.type" id="newsType">
				<option value="0">选择类型</option>
				<option value="kyxx">客运信息</option>
				<option value="hydt">行业动态</option>
			</select>
		</div>
		<div>
			<span id="label1">新闻标题</span>	
			<input type="text" id="newsTitle" name="news.title" size="60"/>
			<span id='label2'>（不超过50个汉字）</span>
		</div>
		<div>
			<span id="label1">作者</span>
			<input type="text" id="newsAuthor" name="news.author" size="30"/>（不超过25个汉字）
		</div>
		<div id='divImgs'>
		<table id="tbCurrentImgs">
		</table>
		<table id="tbNewsImgs">
		</table>
		</div>
		
		<div>
			<input type="button" value="添加更多图片" onclick="addRow(document.getElementById('tbNewsImgs'));"/>
		</div>
		<div>
			<input type="button" id="editNews" value="保存修改" onclick="modifyNews();"/>
		</div>
		</form>
	</div>
</body>
</html>
